<%-- 
    Document   : attendexam
    Created on : Jun 26, 2012, 6:50:40 PM
    Author     : FRIENDS
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>examination</title>
    </head>
    <body style="background-color: #00CCFF">
        <form name="examform" action="saveanswers" >
        <%
        String examid=request.getParameter("examid");
        PreparedStatement p=dbconnector.DBDriver.getPrepare("select * from "+examid);
        ResultSet rs=p.executeQuery();
        while(rs.next())
         {
         %>
         <p>
             <span style="margin-left: 30px;color: #8C3103">(<%=rs.getString(1)%>). <%=rs.getString(2)%></span><br />
              <input type="radio" name="<%=rs.getString(1)%>" style="margin-left: 50px" value="<%=rs.getString(3)%>" /><%=rs.getString(3)%><br />
              <input type="radio" name="<%=rs.getString(1)%>" style="margin-left: 50px" value="<%=rs.getString(4)%>" /><%=rs.getString(4)%><br />
              <input type="radio" name="<%=rs.getString(1)%>" style="margin-left: 50px" value="<%=rs.getString(5)%>" /><%=rs.getString(5)%><br />
              <input type="radio" name="<%=rs.getString(1)%>" style="margin-left: 50px" value="<%=rs.getString(6)%>" /><%=rs.getString(6)%><br />
         </p>
         <%}%>
         <p><input  type="submit" name="finish" value="  finish  " style="display:block;margin-left: auto;margin-right: auto" /></p>
        </form>
    </body>
</html>
